import 'package:after_sale_plugin/package_bridge.dart';
import 'package:after_sale_plugin/package_data_center.dart';
import 'package:after_sale_plugin/routes.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:lx_widgets_library/config.dart';
import 'package:lx_widgets_library/utils/share_preferences_util.dart';

void main() async {
  Get.put(AfterSalePluginBridge());
  Get.put(SharedPreferencesService());
  PackageDataCenter.fromMap({});
  Get.lazyPut(() => LxWidgetsLibraryService());
  runApp(ScreenUtilInit(
    designSize: const Size(375, 812), // 设置设计稿尺寸
    minTextAdapt: true,
    builder: (a, b) {
      return GetMaterialApp(
        initialRoute: '/',
        getPages: AfterSalePages.routes,
      );
    },
  ));
}
